<?php
namespace Bundle\ModuleBundle\Plugins\TextPlugin;

use Bundle\ModuleBundle\Plugin\Fields\StringField;

class TextPlugin extends \Bundle\ModuleBundle\Plugin\Plugin
{
    private $data;

    public function setData($data)
    {
        $this->data = $data;
    }

    public function getTitle()
    {
        return $this->_configuration->title;
    }
    public function boot()
    {
        $fields = array(
            'text' => new StringField(),
        );
        $this->_configuration->merge(
           array(
               'database' => array(
                   'fields' => $fields,
               ),
               'fields' => $fields,
           ));
    }

    public function getName()
    {

    }

}